class Student {
    public String name;
    public int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void show(){
        System.out.println("name:"+name+" "+"age:"+age);
    }
}
class Undergradute extends Student {
    public String name;
    public int age;
    public String degree;

    public Undergradute(String name, int age, String degree) {
        super(name, age);
        this.name = name;
        this.age = age;
        this.degree = degree;
    }

    @Override
    public void show() {
        System.out.println("name:"+name+" "+"age:"+age+" "+"degree:"+degree);

    }
}

public class Test {
    public static void main(String[] args) {
        Student student=new Student("张三",17);
        Undergradute undergradute=new Undergradute("李四",20,"bechelor");
        student.show();
        undergradute.show();
    }
}
